package cn.com.dstz.common.web.springmvc;

import javax.servlet.ServletContext;

import org.springframework.web.context.ServletContextAware;

public class ServletContextRealPathResolver implements RealPathResolver,ServletContextAware{
	
	public String get( String path ) {
		return context.getRealPath( path );
	}

	public void setServletContext( ServletContext servletContext ) {
		this.context = servletContext;
	}

	private ServletContext context;
}
